package cn.com.blueInfo.HaiYuan.business.purchase.mapper;

import cn.com.blueInfo.HaiYuan.business.purchase.entity.PurchaseBase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 采购单基本信息表
 * @ClassName: PurchaseBaseMapper
 * @tabelName: tj_hai_purchase_base
 * @author suxch
 * @date 2020年11月7日  下午2:30:26
 */
@Mapper
public interface PurchaseBaseMapper extends BaseMapper<PurchaseBase> {

    /**
     * 批量新增采购单基本信息
     * @Title: batchAddPurchaseBaseInfo
     * @param purchaseBaseList
     * @return int
     * @throws
     */
    int batchAddPurchaseBaseInfo(List<PurchaseBase> purchaseBaseList);

    /**
     * 新增采购单基本信息
     * @Title: addPurchaseBaseInfo
     * @param purchaseBase
     * @return int
     * @throws
     */
    int addPurchaseBaseInfo(PurchaseBase purchaseBase);

    /**
     * 批量删除采购单基本信息
     * @Title: batchDelPurchaseBaseInfoByUnids
     * @param purchaseBaseUnids
     * @return int
     * @throws
     */
    int batchDelPurchaseBaseInfoByUnids(ArrayList<String> purchaseBaseUnids);

    /**
     * 删除采购单基本信息
     * @Title: delPurchaseBaseInfoByUnid
     * @param unid
     * @return int
     * @throws
     */
    int delPurchaseBaseInfoByUnid(String unid);

    /**
     * 批量更新采购单基本信息
     * @Title: batchUpdatePurchaseBaseInfoByUnid
     * @param purchaseBaseList
     * @return int
     * @throws
     */
    int batchUpdatePurchaseBaseInfoByUnid(List<PurchaseBase> purchaseBaseList);

    /**
     * 更新采购单基本信息
     * @Title: updatePurchaseBaseInfoByUnid
     * @param purchaseBase
     * @return int
     * @throws
     */
    int updatePurchaseBaseInfoByUnid(PurchaseBase purchaseBase);

    /**
     * 分页查询采购单基本信息
     * @Title: queryPurchaseBaseInfo
     * @param paramMap
     * @return List<PurchaseBase>
     * @throws
     */
    List<PurchaseBase> queryPurchaseBaseInfo(Map<String, Object> paramMap);

    /**
     * 查询采购单基本信息
     * @Title: queryPurchaseBaseInfo
     * @return List<PurchaseBase>
     * @throws
     */
    List<PurchaseBase> queryPurchaseBaseInfo();

    /**
     * 条件查询采购单基本信息数量
     * @Title: queryPurchaseBaseInfoCount
     * @param paramMap
     * @return Integer
     * @throws
     */
    Integer queryPurchaseBaseInfoCount(Map<String, Object> paramMap);

    /**
     * 查询采购单基本信息数量
     * @Title: queryPurchaseBaseInfoCount
     * @return Integer
     * @throws
     */
    Integer queryPurchaseBaseInfoCount();

}
